class GameVideoListItem {
  late String id;
  late String video_type;
  late String name;
  late String path;
  late String cover;
  late GameVideoListItemVenue venue;
  late String duration;
  late String role_exclusive_name;
  late int linkType;
  late String h5Url;
  GameVideoListItem(Map<String, dynamic> json) {
    this.id = "${json["id"]}";
    this.video_type = "${json["video_type"]}";
    this.name = "${json["name"]}";
    this.path = "${json['path']}";
    this.cover = "${json["cover"]}";
    this.venue = GameVideoListItemVenue(json["venue"]);
    this.duration = "${json["duration"]}";
    this.h5Url = "${json["h5_url"]}";
    this.linkType = int.tryParse("${json["link_type"]}") ?? 0;
    role_exclusive_name = "${json["role_exclusive_name"]}";
  }
  Map<String, dynamic> get json {
    var result = Map<String, dynamic>();
    result["id"] = this.id;
    result["video_type"] = this.video_type;
    result["name"] = this.name;
    result["cover"] = this.cover;
    result["venue"] = this.venue.json;
    result["duration"] = this.duration;
    result['path'] = this.path;
    result['h5_url'] = this.h5Url;
    result["role_exclusive_name"] = role_exclusive_name;
    result['link_type'] = this.linkType;
    return result;
  }
}

class GameVideoListItemVenue {
  late String id;
  late String code;
  late String name;
  GameVideoListItemVenue(Map<String, dynamic> json) {
    this.id = "${json["id"]}";
    this.code = "${json["code"]}";
    this.name = "${json["name"]}";
  }
  Map<String, dynamic> get json {
    var result = Map<String, dynamic>();
    result["id"] = this.id;
    result["code"] = this.code;
    result["name"] = this.name;
    return result;
  }
}
